package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.ReceivedMessages;
import com.example.mall.dto.ReceivedMessagesDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.ReceivedMessagesQuery;

import java.util.List;


/**
 * <p>
 * 接收消息表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
public interface IReceivedMessagesService extends IService<ReceivedMessages> {

    //分页查询
    PageDTO<ReceivedMessagesDto> queryPage(ReceivedMessagesQuery receivedMessagesQuery);

    //根据id查询
    ReceivedMessages queryReceivedMessagesById(Long receivedId);

    //查询所有
    List<ReceivedMessages> queryReceivedMessagesList();

    //新增
    void insert(ReceivedMessagesDto receivedMessagesDto);

    //修改
    void update(ReceivedMessagesDto receivedMessagesDto);

    //删除
    void delete(Long receivedId);

    //批量删除
    void deleteBatch(List<Long> receivedIds);
}
